var o = require("../UISoundManager.js")
cc.Class({
    extends: require("../UIPopupBase.js"),
    ctor: function () {
        this._TAG = "collectDeskTop";
    },
    properties: {
        hand: cc.Node
    },
    onLoad: function () {
        this.handWidget = this.hand.getComponent(cc.Widget), this.getBackButtonPositionY();
    },
    getBackButtonPositionY: function () {
        var e = tywx.SystemInfo.wxSystemInfo;
        if (console.log("getBackButtonPositionY", e), null != e) {
            var t = e.model, n = tywx.UserInfo.isiPhone, o = e.windowHeight, i = 0;
            if (n) i = 812 == o ? Global.config.SYSTEMTYPE.iPhoneXType : 736 == o ? Global.config.SYSTEMTYPE.iPhone7P8PType : Global.config.SYSTEMTYPE.iphoneOtherType; else i = t.indexOf("vivo Y85A") >= 0 ? Global.config.SYSTEMTYPE.ANDROIDVIVO85 : Global.config.SYSTEMTYPE.ANDROIDOther;
        }
        switch (i) {
            case Global.config.SYSTEMTYPE.iphoneOtherType:
                this.handWidget.right = 155;
                break;

            case Global.config.SYSTEMTYPE.iPhoneXType:
                this.handWidget.top = 150;
                break;

            case Global.config.SYSTEMTYPE.ANDROIDOther:
                this.handWidget.right = 135;
                break;

            case Global.config.SYSTEMTYPE.iPhone7P8PType:
                this.handWidget.right = 135, this.handWidget.top = 100;
                break;

            case Global.config.SYSTEMTYPE.ANDROIDVIVO85:
        }
    },
    OnPanelClose: function () {
        o.playEffect("select"), this.closePanel();
    }
})
